package com.vcourse.service.edu.service;

import com.vcourse.service.edu.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author Zengsh123
 * @since 2020-05-25
 */
public interface VideoService extends IService<Video> {
    /**
     * 通过课时id删除视频
     * @param id video表数据id
     */
    void removeMediaVideoById(String id);

    /**
     * 通过章节id删除视频
     * @param chapterId 章节id
     */
    void removeMediaVideoByChapterId(String chapterId);

    /**
     * 通过课程id删除视频
     * @param courseIdList 课程id集合
     */
    void removeMediaVideoByCourseId(List<String> courseIdList);
}
